<?php

class Gallery_Form_Element_Filter_RemoveExtension extends Kernel_Component 
    implements Kernel_Form_Element_Filter_Interface
{
    
    /**
     * Returns the result of filtering $value
     *
     * @param  mixed $value
     * @throws Kernel_firm_Element_Filter_Exception If filtering $value is impossible
     * @return mixed
     */
    public function filter($value, array $values = array()) 
    {
        return pathinfo($value, PATHINFO_FILENAME);
    }
    
}